#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTimer>

#include "../../memshare/memory_share.h"

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;

    QTimer timer;
    MemoryShare memshare;
    char* p_mem_data;
    int len_mem_data;
    cv::Mat im;
    QImage qimg;


private slots:
    void SLOT_timer();


};

#endif // MAINWINDOW_H
